import { View } from "@tarojs/components";
import { Tab, Tabs } from "@antmjs/vantui";
import React from "react";
import OfficialRelease from "./components/OfficialRelease";
import "./index.less";
import RegulationsInterprete from "./components/RegulationsInterprete";
import TemplateQuery from "./components/TemplateQuery";

const IndexBusinessTabs: React.FC = () => {
  return (
    <View className="business-tabs__wrapper">
      <Tabs animated>
        <Tab key="1" title="官方发布">
          <OfficialRelease />
        </Tab>
        <Tab key="2" title="法规解读">
          <RegulationsInterprete />
        </Tab>
        <Tab key="3" title="模版查询">
          <TemplateQuery />
        </Tab>
      </Tabs>
    </View>
  );
};

export default IndexBusinessTabs;
